package com.first.agent.dao.impl;

import com.first.agent.dao.FinancialManagementDao;
import com.first.agent.dbutils.JdbcBuild;

import java.sql.SQLException;

public class FinancialManagementDaoImpl extends JdbcBuild implements FinancialManagementDao {

    @Override
    public int FinancialManagement(String user_name, Integer fil_type_id, Double financial_funds, String remark) throws SQLException {
        String sql = "insert into agent_details (user_name,fil_type_id,financial_funds,remark) value (?,?,?,?)";
        Object[] params={user_name,fil_type_id,financial_funds,remark};
        return super.executeUpdate(sql,params);
    }
}
